/*
 * 74150.h
 *
 *  Created on: Aug 20, 2009
 *      Author: Orlando Arias
 *     License: GPLv3
 */

#ifndef _74150_H_
#define _74150_H_

#include <inttypes.h>

typedef struct _muxer74150 {
	uint8_t strobe;
	uint8_t select[4];
	uint8_t output;
} Muxer74150;

void mx74150_init(Muxer74150 *m);
uint8_t mx74150_getPin(Muxer74150 *m, uint8_t pin);
void mx74150_setStrobe(Muxer74150 *m, uint8_t mode);

#endif /* _74150_H_ */
